package com.bwie.common.exceptions;

import lombok.Data;

/**
 * @ClassName:
 * @Description: 业务异常
 * @Author: bl
 * @Date: 2025/2/27
 */
@Data
public class BusinessException extends RuntimeException {

    /**
     * 错误状态码
     */
    private int code;

    /**
     * 异常信息
     */
    private String message;

    public BusinessException(String message) {
        this.message = message;
    }

    public BusinessException(int code, String message) {
        this.code = code;
        this.message = message;
    }
}

